package com.zzw.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzw.reggie.dto.DishDto;
import com.zzw.reggie.entity.Dish;

public interface IDishService extends IService<Dish> {

    /**
     * 新增菜品，同时插入对应的口味数据 需操作两张表：dish dish_flavor
     * @param dishDto
     */
    void saveWithFlavor(DishDto dishDto);

    DishDto getDishWithFlavor(Long id);

    void updateDishWithFlavor(DishDto dishDto);
}
